<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="/resources/template/template.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:bi="http://java.sun.com/jsf/composite/bill"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ez="http://java.sun.com/jsf/composite/ezcomp"
                xmlns:pa="http://java.sun.com/jsf/composite/paymentMethod"
                >



    <ui:define name="content">

        <h:panelGroup rendered="true" styleClass="opdPanel" >
            <h:form id="form">
                <p:focus id="focusIx" for="acIx" />
                <h:panelGroup rendered="#{!billPackageController.printPreview}" styleClass="alignTop" >
                    <p:panel style="min-height: 600px; position:relative;"  >
                        <f:facet name="header" >
                            <h:panelGrid columns="17"  >
                                <h:outputLabel value="OPD Packages" />
                                <h:outputLabel value="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" style="min-width: 50px;" />
                                <p:selectOneMenu   id="cmbPs" value="#{billPackageController.paymentMethod}" >
                                    <f:selectItems value="#{enumController.paymentMethods}"  />
                                    <p:ajax process="cmbPs"
                                            update="pBillDetails tblBillItem creditCard cheque slip"
                                            event="change" 
                                            listener="#{billPackageController.calTotals}"/>
                                </p:selectOneMenu>

                                <h:panelGroup id="creditCard" style="display: #{billPackageController.paymentMethod ne 'Card' ? 'none' : 'block'} ; ">
                                    <pa:creditCard paymentMethodData="#{billPackageController.paymentMethodData}"/>
                                </h:panelGroup>

                                <h:panelGroup id="cheque" style="display: #{billPackageController.paymentMethod ne 'Cheque' ? 'none' : 'block'} ; " >
                                    <pa:cheque paymentMethodData="#{billPackageController.paymentMethodData}"/>
                                </h:panelGroup>

                                <h:panelGroup id="slip" style="display: #{billPackageController.paymentMethod ne 'Slip' ? 'none' : 'block'} ;">
                                    <pa:slip paymentMethodData="#{billPackageController.paymentMethodData}"/>
                                </h:panelGroup>

                                <p:commandButton value="Settle" action="#{billPackageController.settleBill}" ajax="false"  style="width: 150px; padding: 1px;border: 1px solid ; margin: auto;">
                                </p:commandButton>
                                <p:commandButton value="New Bill" ajax="false" action="opd_bill_package" actionListener="#{billPackageController.prepareNewBill()}" >
                                </p:commandButton>
                                <p:defaultCommand target="btnAddIx" />
                            </h:panelGrid>
                        </f:facet>

                        <h:panelGrid columns="2" >

                            <h:panelGrid columns="1" >

                                <h:panelGroup id="panelPatient" >

                                    <p:tabView id="tvPt" style="min-height: 250px;"  >
                                        <p:ajax event="tabChange"  process="@this" listener="#{billPackageController.onTabChange}" />

                                        <p:tab id="tabNewPt" title="New Patient"  >
                                            <ez:patientDetail controller="#{billPackageController}"/>
                                        </p:tab>
                                        <p:tab id="tabSearchPt" title="Search Patient">

                                            <h:panelGrid columns="1" >
                                                <p:autoComplete widgetVar="aPt" id="acPt" forceSelection="true" 
                                                                value="#{billPackageController.searchedPatient}" 
                                                                completeMethod="#{patientController.completePatient}" 
                                                                var="apt" itemLabel="#{apt.person.name}" 
                                                                itemValue="#{apt}" size="30"  style="width: 400px;" >
                                                    <f:ajax event="itemSelect" execute="acPt" render="panSearch" />
                                                </p:autoComplete>   

                                                <h:panelGrid id="panSearch" columns="2" >
                                                    <h:outputLabel  rendered="#{billPackageController.searchedPatient!=null}" value="Name" />
                                                    <h:outputLabel rendered="#{billPackageController.searchedPatient!=null}" value="#{billPackageController.searchedPatient.person.name}" ></h:outputLabel>
                                                    <h:outputLabel  rendered="#{billPackageController.searchedPatient!=null}" value="Sex" />
                                                    <h:outputLabel rendered="#{billPackageController.searchedPatient!=null}" value="#{billPackageController.searchedPatient.person.sex}" ></h:outputLabel>
                                                    <h:outputLabel  rendered="#{billPackageController.searchedPatient!=null}" value="DOB"  />

                                                    <h:outputLabel rendered="#{billPackageController.searchedPatient!=null}" value="#{billPackageController.searchedPatient.person.dob}"   >
                                                        <f:convertDateTime pattern="dd/MM/yy" />
                                                    </h:outputLabel>

                                                    <h:outputLabel  rendered="#{billPackageController.searchedPatient!=null}" value="Adress" />
                                                    <h:outputLabel rendered="#{billPackageController.searchedPatient!=null}" value="#{billPackageController.searchedPatient.person.address}" ></h:outputLabel>
                                                </h:panelGrid>
                                            </h:panelGrid>

                                        </p:tab>

                                    </p:tabView>

                                </h:panelGroup>

                                <h:panelGroup id="panelIx" >


                                    <p:panel id='pIxAdd' header="Items Requests" style="min-height: 350px;"  >                                        
                                        <p:autoComplete widgetVar="aIx" id="acIx" forceSelection="true" value="#{billPackageController.currentBillItem.item}" completeMethod="#{itemController.completePackage}" var="ix" itemLabel="#{ix.name}" itemValue="#{ix}" size="30"  style="width: 400px;" 
                                                        required="true" requiredMessage="Please add item">
                                            <p:column>
                                                #{ix.name}
                                            </p:column>
                                            <p:column>
                                                #{ix.total}
                                            </p:column>

                                        </p:autoComplete>
                                        <h:commandButton id="btnAddIx" value="Add" action="#{billPackageController.addToBill()}" >
                                            <f:ajax execute="acIx btnAddIx" render="focusIx tblBillItem  pBillDetails pIxAdd" />
                                        </h:commandButton>


                                    </p:panel>

                                </h:panelGroup>

                            </h:panelGrid>


                            <h:panelGrid columns="1" >

                                <p:dialog id="panDoc" header="Add New Doctor" widgetVar="dlg" resizable="false">  
                                    <h:panelGrid columns="2" style="margin-bottom:10px">  
                                        <h:outputText id="lblNameD" value="Name" ></h:outputText>
                                        <h:inputText autocomplete="off" id="txtNameD"  value="#{doctorController.current.person.name}"  ></h:inputText>
                                        <h:outputText id="lblPhoneD" value="Phone" ></h:outputText>
                                        <h:inputText autocomplete="off" id="txtPhoneD" value="#{doctorController.current.person.phone}"  ></h:inputText>
                                        <h:outputText id="lblFaxD" value="Fax" ></h:outputText>
                                        <h:inputText autocomplete="off" id="txtFaxD" value="#{doctorController.current.person.fax}"  ></h:inputText>
                                        <h:outputText id="lblMobileD" value="Mobile" ></h:outputText>
                                        <h:inputText autocomplete="off" id="txtMobileD" value="#{doctorController.current.person.mobile}"  ></h:inputText>
                                        <h:outputText id="lblAddressD" value="Address" ></h:outputText>
                                        <h:inputText autocomplete="off" id="txtAddressD" value="#{doctorController.current.person.address}"  ></h:inputText>
                                        <h:outputText value="Speciality" ></h:outputText>                                    
                                        <h:selectOneListbox id="cmbSpecialityD" size="1" value="#{doctorController.current.speciality}" >
                                            <f:selectItem itemLabel="Please select a speciality"/>

                                            <f:selectItems value="#{specialityController.items}" var="cat" itemLabel="#{cat.name}" itemValue="#{cat}" />
                                        </h:selectOneListbox>
                                        <h:outputText id="lblRegD" value="Registration" ></h:outputText>
                                        <h:inputText autocomplete="off" id="txtRegD" value="#{doctorController.current.registration}"  ></h:inputText>                 
                                        <h:outputText id="lblQuaD" value="Qualification" ></h:outputText>
                                        <h:inputText autocomplete="off" id="txtQuaD" value="#{doctorController.current.qualification}"  ></h:inputText>   

                                        <p:commandButton id="btnDocSave" value="Add New" process="btnDocSave panDoc" update="panDoc #{p:component('cmbDoc')}" actionListener="#{doctorController.saveSelected()}" styleClass="buttons" oncomplete="dlg.hide();">
                                        </p:commandButton>

                                    </h:panelGrid>  

                                </p:dialog>  


                                <h:panelGroup id="panelBillReferrals" >

                                    <p:tabView >
                                        <p:tab title="Refering Doctor">
                                            <p:autoComplete forceSelection="true" id="cmbDoc" value="#{billPackageController.referredBy}" completeMethod="#{doctorController.completeDoctor}" var="ix" itemLabel="#{ix.person.name}" itemValue="#{ix}" size="30"  style="width: 400px;">
                                            </p:autoComplete>
                                            <p:commandButton id="btnAddNewDoc" type="button" value="Add New Doctor" onclick="dlg.show();" actionListener="#{doctorController.prepareAdd}" process="btnAddNewDoc" update="#{p:component('panDoc')}" />  
                                        </p:tab>
                                        <p:tab title="Company" >
                                            <p:autoComplete id="creditCom" forceSelection="true" value="#{billPackageController.creditCompany}"  completeMethod="#{creditCompanyController.completeCredit}" var="ix" itemLabel="#{ix.name}" itemValue="#{ix}" size="30"  style="width: 400px;">

                                            </p:autoComplete>
                                            <h:commandButton actionListener="#{billPackageController.calTotals()}" value="Set CreditCompay">
                                                <f:ajax execute="creditCom" render=":#{p:component('panelBillTotals')}  :#{p:component('tblRequests')} "/>
                                            </h:commandButton>
                                        </p:tab>                                       
                                        <p:tab title="Staff">
                                            <p:autoComplete forceSelection="true" converter="stfcon" value="#{billPackageController.staff}" completeMethod="#{staffController.completeStaff}" var="ix2" itemLabel="#{ix2.person.name}" itemValue="#{ix2}" size="30"  style="width: 400px;">
                                            </p:autoComplete>
                                        </p:tab>
                                        <p:tab title="Referrals">
                                            <p:panelGrid columns="2">
                                                <p:outputLabel value="Refferal Institution"></p:outputLabel>
                                                <p:autoComplete forceSelection="true" id="cmdIns" 
                                                                value="#{billPackageController.referredByInstitution}" 
                                                                completeMethod="#{institutionController.completeIns}" var="refi" 
                                                                itemLabel="#{refi.name}" itemValue="#{refi}" converter="institutionConverter">
                                                    <p:column headerText="Name">
                                                        #{refi.name}
                                                    </p:column>
                                                    <p:column headerText="Code">
                                                        #{refi.institutionCode}
                                                    </p:column>
                                                    <p:column headerText="Institution Type">
                                                        #{refi.institutionType}
                                                    </p:column>
                                                </p:autoComplete>
                                                <p:outputLabel value="Referral Number"></p:outputLabel>
                                                <p:inputText value="#{billPackageController.referralId}" style="width: 400px"></p:inputText>
                                            </p:panelGrid>
                                        </p:tab>

                                    </p:tabView>

                                </h:panelGroup>

                                <h:panelGroup id="panelBillItems" >

                                    <p:tabView id="tblBillItem" >
                                        <p:tab id="pacName" title="Package Name" >
                                            <h:panelGrid columns="2" style="min-width: 100%;">
                                                <h:outputLabel value="#{billPackageController.currentBillItem.item.name}"/>
                                                <p:commandButton id="btnRemove" value="X" style="float: right;" rendered="#{billPackageController.currentBillItem.item ne null}" action="#{billPackageController.removeBillItem}" ajax="false" />                                                
                                            </h:panelGrid>
                                        </p:tab>
                                        <p:tab id="tabBillItems" title="Bill Items" >
                                            <p:dataTable 
                                                id="tblRequests" 
                                                rowIndexVar="rowIndex" 
                                                value="#{billPackageController.lstBillEntries}" 
                                                var="bi" 
                                                >

                                                <p:column>
                                                    <f:facet name="header">No</f:facet>
                                                        #{rowIndex+1}
                                                </p:column>
                                                <p:column>
                                                    <f:facet name="header">Item</f:facet>
                                                        #{bi.billItem.item.name}
                                                </p:column>
                                                <p:column>
                                                    <f:facet name="header">Fee</f:facet>
                                                    <h:outputLabel value="#{bi.billItem.netValue}">
                                                        <f:convertNumber pattern="#,##0.00" />
                                                    </h:outputLabel>
                                                </p:column>
                                                <p:column>
                                                    <f:facet name="header">Department</f:facet>
                                                        #{bi.billItem.item.department.name}
                                                </p:column>

                                            </p:dataTable>
                                        </p:tab>
                                        <p:tab id="tabBillIx" title="Tests" >
                                            <p:dataTable rowIndexVar="rowIndex" value="#{billPackageController.lstBillComponents}" var="bix" >
                                                <p:column>
                                                    <f:facet name="header">No</f:facet>
                                                        #{rowIndex+1}
                                                </p:column>
                                                <p:column>
                                                    <f:facet name="header">Name</f:facet>
                                                        #{bix.item.name}
                                                </p:column>

                                            </p:dataTable>
                                        </p:tab>
                                        <p:tab id="tabBillFee" title="Fees" >
                                            <p:dataTable rowIndexVar="rowIndex" value="#{billPackageController.lstBillFees}" var="bif" >
                                                <p:column>
                                                    <f:facet name="header">No</f:facet>
                                                        #{rowIndex+1}
                                                </p:column>
                                                <p:column>
                                                    <f:facet name="header">Fee</f:facet>
                                                    <h:inputText autocomplete="off" id="txtFeeVal" value="#{bif.feeValue}" disabled="#{!bif.billItem.item.userChangable}" >
                                                        <f:convertNumber pattern="#,##0.00" />
                                                        <f:ajax event="keyup" execute="txtFeeVal" render=" :#{p:component('tblRequests')}  :#{p:component('pBillDetails')}" listener="#{billPackageController.feeChanged}" />
                                                    </h:inputText>
                                                </p:column>

                                                <p:column>
                                                    <f:facet name="header">Payee</f:facet>
                                                    <h:outputLabel value="#{bif.department.name}" rendered="#{bif.department!=null}" ></h:outputLabel>
                                                    <h:outputLabel value="#{bif.staff.person.name}" rendered="#{bif.staff!=null and bif.fee.speciality==null}" ></h:outputLabel>

                                                    <p:selectOneMenu value="#{bif.staff}" rendered="#{bif.fee.speciality!=null}" >
                                                        <f:selectItem itemLabel="Select Staff" />
                                                        <f:selectItems  value="#{staffController.getSpecialityStaff(bif.fee.speciality) }" var="bifs" itemLabel="#{bifs.person.name}" itemValue="#{bifs}" />
                                                    </p:selectOneMenu>

                                                </p:column>
                                            </p:dataTable>
                                        </p:tab>
                                    </p:tabView>



                                </h:panelGroup>

                                <h:panelGroup id="panelBillTotals" >

                                    <p:panel header="Bill Details" id="pBillDetails" style="padding: 5px; margin: 10px;" >
                                        <p:panelGrid columns="2" columnClasses="numberCol, textCol"  >
                                            <h:outputLabel value="Total" ></h:outputLabel>
                                            <h:outputLabel id="tot" value="#{billPackageController.total}" >
                                                <f:convertNumber pattern="#,##0.00" />
                                            </h:outputLabel>
                                            <h:outputLabel value="Discount" ></h:outputLabel>
                                            <h:outputLabel id="dis" value="#{billPackageController.discount}" >
                                                <f:convertNumber pattern="#,##0.00" />
                                            </h:outputLabel>
                                            <h:outputLabel value="Net Total" ></h:outputLabel>
                                            <h:outputLabel id="netTotal" value="#{billPackageController.netTotal}" >
                                                <f:convertNumber pattern="#,##0.00" />
                                            </h:outputLabel>
                                            <h:outputLabel value="Tendered" ></h:outputLabel>
                                            <h:inputText autocomplete="off" id="paid" value="#{billPackageController.cashPaid}" >
                                                <p:ajax process="netTotal paid" update="balance" event="keyup"/>
                                            </h:inputText>
                                            <h:outputLabel  value="Balance " ></h:outputLabel>
                                            <h:outputLabel id="balance" value="#{billPackageController.cashBalance}" >
                                                <f:convertNumber pattern="#,##0.00" />
                                            </h:outputLabel>
                                        </p:panelGrid>

                                    </p:panel>
                                </h:panelGroup>




                            </h:panelGrid>


                        </h:panelGrid>
                    </p:panel>
                </h:panelGroup>


                <h:panelGroup rendered="#{billPackageController.printPreview}" >

                    <div >

                        <div >
                            <div >
                                <p:commandButton value="Print" ajax="false" action="#" >
                                    <p:printer target="gpBillPreview" ></p:printer>
                                </p:commandButton>
                                <p:commandButton value="Print Without Totals" ajax="false" action="#" >
                                    <p:printer target="gpBillPreview1" ></p:printer>
                                </p:commandButton>
                                <p:commandButton value="New Lab Bill" ajax="false" action="opd_bill_package" actionListener="#{billPackageController.prepareNewBill()}" >
                                </p:commandButton>
                                <p:commandButton ajax="false" value="Batch Cancel" action="#{billPackageController.cancellAll}"/>
                                <h:panelGroup id="gpBillPreview">
                                    <ui:repeat value="#{billPackageController.bills}" var="bill">
                                        <bi:opdBillPrintRuhunu_pack bill="#{bill}" dup="false"/>
                                    </ui:repeat>
                                </h:panelGroup>
                                <h:panelGroup id="gpBillPreview1">
                                    <ui:repeat value="#{billPackageController.bills}" var="bill">
                                        <bi:opdBillPrintRuhunu_pack_1 bill="#{bill}" dup="false"/>
                                    </ui:repeat>
                                </h:panelGroup>
                                <!--                                <div style="border: 1px solid;" >
                                
                                                                    <p:panel   id="gpBillPreview"  style="margin: auto; border: 0px; padding: 0px; " >
                                
                                                                        <div >
                                                                            <div>
                                                                                <ui:repeat value="#{billPackageController.bills}" var="bill" >
                                
                                                                                    <h:panelGroup rendered="#{sessionController.loggedPreference.opdBillPaperType eq 'PosPaper'}">
                                                                                        <bi:opdPackegePosBill  bill="#{bill}" />   
                                                                                    </h:panelGroup>
                                
                                                                                    <h:panelGroup rendered="#{sessionController.loggedPreference.opdBillPaperType eq 'FiveFivePaper'}">
                                
                                
                                                                                        <div style="page-break-after: always; page-break-inside: avoid; min-width: 5cm; min-height: 5cm;">
                                                                                            <div style="height:13.5cm!important; width:12cm!important; padding:0.0cm; overflow:hidden!important; page-break-after:always; font-family: sans-serif; font-size: 11px!important; position: relative;  margin: 0px; background-size: 100% auto; " >
                                
                                                                                                <h:outputLabel value="#{bill.insId}"
                                                                                                               style="position:absolute;left:4.5cm; top:1.1cm;"  >
                                                                                                </h:outputLabel>
                                
                                                                                                <h:outputLabel value="#{bill.billDate}"
                                                                                                               style="position: absolute; left: 9.8cm; top:1.1cm;" >
                                                                                                    <f:convertDateTime pattern="dd/MM/yy"/>
                                                                                                </h:outputLabel>
                                
                                                                                                <h:outputLabel value="#{bill.paymentScheme.name}"
                                                                                                               style="position:absolute;left:4.5cm; top:1.6cm;"  >
                                                                                                </h:outputLabel>
                                
                                                                                                <h:outputLabel value="#{bill.billTime}"
                                                                                                               style="position: absolute; left: 9.8cm; top:1.6cm;" >
                                                                                                    <f:convertDateTime pattern="hh mm ss a"/>
                                                                                                </h:outputLabel>
                                
                                                                                                <h:outputLabel value="#{bill.patient.person.nameWithTitle}"
                                                                                                               style="position:absolute;left:4.5cm; top:2.0cm; text-transform: capitalize; "  >
                                                                                                </h:outputLabel>
                                
                                                                                                <h:outputLabel value="#{bill.patient.person.phone}"
                                                                                                               style="position: absolute;left:4.5cm; top:2.5cm;"  >
                                                                                                </h:outputLabel>
                                
                                                                                                <h:outputLabel value="Cashier : #{bill.creater.code}"
                                                                                                               style="position:absolute;left:2.0cm; top:12.0cm;"  >
                                                                                                </h:outputLabel>
                                
                                                                                                <h:outputLabel value="#{bill.collectingCentre.name} #{bill.creditCompany.name}"
                                                                                                               style="position:absolute;left:5.5cm; top:12.0cm;"  >
                                                                                                </h:outputLabel>
                                
                                                                                                <h:dataTable value="#{billPackageController.lstBillEntries}" var="bip" style="position: absolute;left:1.6cm; top:3.5cm; border: 0px; "   >
                                                                                                    <h:column >
                                                                                                        <h:outputLabel rendered="#{bip.billItem.item.department.id eq bill.toDepartment.id}" value="#{bip.billItem.item.printName}" style="margin: 4px; font-size: 11px!important;" >
                                                                                                        </h:outputLabel>
                                                                                                    </h:column>
                                                                                                </h:dataTable>
                                
                                                                                                <div style="position: absolute;left:9.6cm; top:3.5cm; border: 0px; text-align: right!important;"  >
                                                                                                    <h:dataTable value="#{billPackageController.lstBillEntries}" var="bip1"  >
                                                                                                        <h:column >
                                                                                                            <h:outputLabel  rendered="#{bip1.billItem.bill.id eq bill.id}"  value="#{bip1.billItem.grossValue}"  style="margin: 4px; font-size: 11px!important;" >
                                                                                                                <f:convertNumber pattern="#,##0.00" />
                                                                                                            </h:outputLabel>
                                                                                                        </h:column>
                                                                                                    </h:dataTable>
                                                                                                </div>
                                                                                                <div style="position: relative;left:3.6cm; margin-top: 0.5cm; top:8.0cm; border: 0px; text-align: right!important;" >
                                
                                                                                                    <table>
                                                                                                        <tr>
                                                                                                            <td>
                                                                                                                <br/>
                                                                                                                <br/>
                                                                                                            </td>
                                                                                                            <td>
                                                                                                                <br/>
                                                                                                                <br/>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td style="min-width: 4.5cm;text-align: left;">
                                                                                                                <h:outputLabel value="Total" style="font-size: 90%;  text-align: right!important;  font-size: 11px!important;   "/>
                                                                                                            </td>
                                                                                                            <td style="text-align: right!important; ">
                                                                                                                <h:outputLabel value="#{bill.total}"  style="font-size: 110%; font-weight: bold ; text-align: right!important; font-size: 11px!important;    ">
                                                                                                                    <f:convertNumber pattern="#,##0.00" />
                                                                                                                </h:outputLabel>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td style="min-width: 4.5cm;text-align: left;">
                                                                                                                <h:outputLabel  rendered="#{bill.discount ne 0.0}" style="font-size: 90%;  text-align: right!important;  font-size: 11px!important;   "  value="Discount"/>
                                                                                                            </td>
                                                                                                            <td style="text-align: right!important; ">
                                                                                                                <h:outputLabel rendered="#{bill.discount ne 0.0}"   value="#{bill.discount}"  style="font-size: 90%;  text-align: right!important;  font-size: 11px!important;   ">
                                                                                                                    <f:convertNumber pattern="#,##0.00" />
                                                                                                                </h:outputLabel>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td style="min-width: 4.5cm;text-align: left;">
                                                                                                                <h:outputLabel  rendered="#{bill.discount ne 0.0}"    value="Net Total" style="font-size: 90%;  text-align: right!important;  font-size: 11px!important;   "/>
                                                                                                            </td>
                                                                                                            <td style="text-align: right!important; ">
                                                                                                                <h:outputLabel  rendered="#{bill.discount ne 0.0}"    value="#{bill.netTotal}"  style="font-size: 110%; font-weight: bold ; text-align: right!important; font-size: 11px!important;    ">
                                                                                                                    <f:convertNumber pattern="#,##0.00" />
                                                                                                                </h:outputLabel>
                                                                                                            </td>
                                                                                                        </tr>
                                
                                
                                                                                                    </table>
                                
                                                                                                </div>
                                
                                
                                                                                            </div>
                                
                                                                                        </div>
                                
                                                                                    </h:panelGroup>
                                
                                                                                </ui:repeat>
                                
                                                                            </div>
                                
                                                                        </div>
                                
                                
                                                                    </p:panel>
                                                                </div>-->
                            </div>
                        </div>
                    </div>
                </h:panelGroup>
            </h:form>
        </h:panelGroup>
    </ui:define>
</ui:composition>
